import java.util.*;

public class Sort4 {
public static void main(String[] args) {
List words = Arrays.asList("B","X","A","M","F","W","O");
Collections.sort(words);
System.out.println(words);
}
}

